{"version":3,"file":"cardsform.bundle.map.js","names":["this","BX","Landing","UI","exports","landing_ui_form_baseform","landing_ui_collection_formcollection","landing_loc","landing_ui_panel_content","main_core","landing_ui_form_cardform","ui_draganddrop_draggable","landing_pageobject","main_core_events","landing_ui_field_textfield","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","forEach","key","babelHelpers","defineProperty","getOwnPropertyDescriptors","defineProperties","CardsForm","_BaseForm","inherits","_this","options","undefined","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","Dom","addClass","layout","type","code","id","concat","replace","Text","getRandom","presets","childForms","FormCollection","presetForm","sync","forms","wheelEventName","window","onwheel","onFormRemove","bind","assertThisInitialized","onAddCardClick","onMouseWheel","onDragEnd","addButton","createAddButton","draggable","Draggable","container","body","context","parent","dragElement","MOVE","offset","y","subscribe","setTimeout","value","serialize","adjustLastFormState","append","footer","createClass","Button","BaseButton","className","text","Loc","getMessage","onClick","event","remove","getTarget","sortForms","_this2","children","toConsumableArray","sort","a","b","aIndex","parseInt","indexOf","wrapper","bIndex","form","index","_form$selector$split","selector","split","_form$selector$split2","slicedToArray","addChildForm","add","addPresetForm","hidden","Type","isPlainObject","showPresetsPopup","addEmptyCard","onPresetItemClick","presetId","preset","newForm","find","clone","oldIndex","Runtime","popup","close","values","fields","field","setValue","TextField","fireEvent","input","isArray","disallow","isDisallow","fieldCode","_this3","popups","map","popupWindow","destroy","PopupMenuWindow","bindElement","items","html","name","onclick","autoHide","maxHeight","minHeight","Event","popupContainer","onMouseOver","onMouseLeave","rootWindow","PageObject","getRootWindow","document","onDocumentClick","closest","show","adjustPopupPosition","getPopupContainer","unbind","_this4","stopPropagation","preventDefault","delta","Content","getDeltaFromEvent","_this$popup$popupWind","getContentContainer","scrollTop","requestAnimationFrame","contentContainer","hasClass","_this5","offsetParent","buttonTop","Utils","offsetTop","buttonLeft","offsetLeft","buttonRect","getBoundingClientRect","popupRect","yOffset","style","top","height","left","width","setAngle","position","newData","data","newSelector","reset","getVisibleForms","item","visibleItems","removeClass","getIndexesMap","reduce","acc","getUsedPresets","_form$selector$split3","_form$selector$split4","isChanged","JSON","stringify","BaseForm","Form","Collection","Panel","DragAndDrop","Field"],"sources":["cardsform.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,QAAUF,KAAKC,GAAGC,SAAW,CAAC,EACtCF,KAAKC,GAAGC,QAAQC,GAAKH,KAAKC,GAAGC,QAAQC,IAAM,CAAC,GAC3C,SAAUC,EAAQC,EAAyBC,EAAqCC,EAAYC,EAAyBC,EAAUC,EAAyBC,EAAyBC,EAAmBC,EAAiBC,GACrN,aAEA,SAASC,EAAQC,EAAQC,GAAkB,IAAIC,EAAOC,OAAOD,KAAKF,GAAS,GAAIG,OAAOC,sBAAuB,CAAE,IAAIC,EAAUF,OAAOC,sBAAsBJ,GAASC,IAAmBI,EAAUA,EAAQC,QAAO,SAAUC,GAAO,OAAOJ,OAAOK,yBAAyBR,EAAQO,GAAKE,UAAY,KAAKP,EAAKQ,KAAKC,MAAMT,EAAMG,EAAU,CAAE,OAAOH,CAAM,CAEpV,SAASU,EAAcC,GAAU,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAAE,IAAIG,EAAS,MAAQF,UAAUD,GAAKC,UAAUD,GAAK,CAAC,EAAGA,EAAI,EAAIf,EAAQI,OAAOc,IAAU,GAAGC,SAAQ,SAAUC,GAAOC,aAAaC,eAAeR,EAAQM,EAAKF,EAAOE,GAAO,IAAKhB,OAAOmB,0BAA4BnB,OAAOoB,iBAAiBV,EAAQV,OAAOmB,0BAA0BL,IAAWlB,EAAQI,OAAOc,IAASC,SAAQ,SAAUC,GAAOhB,OAAOkB,eAAeR,EAAQM,EAAKhB,OAAOK,yBAAyBS,EAAQE,GAAO,GAAI,CAAE,OAAON,CAAQ,CACrg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